<#include "header.htm"/>
<script type="text/javascript">
function validateForm(f){
    var error = '';
	var result = true;
	if (f.user_id.value == "") {
		error += "${I18n.getMessage("ActivateAccount.fillUserId")}";
	}

    if (isNaN(f.user_id.value)) {
        error += "<br />${I18n.getMessage("ActivateAccount.invalidUserId")}";
	}
	
	if (f.hash.value == "") {
		error += "<br />${I18n.getMessage("ActivateAccount.fillHash")}";
	}
	
	if (error != ''){
	    result = false;
	    document.getElementById('error').innerHTML = error;
	} else {
	    document.getElementById('error').innerHTML = '';
	}

	return result;
}

function formReset(){
    document.getElementById('error').innerHTML = '';
}
</script>









<form id="formregister" accept-charset="${encoding}" name="formactivate" action="${JForumContext.encodeURL("/jforum")}" method="post" onsubmit="return validateForm(this);">
<input type="hidden" name="action" value="activateAccount" />
<input type="hidden" name="module" value="user" />


<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>

	<div class="content">
		<h2>${I18n.getMessage("ActivateAccount.title")}</h2>

		<fieldset>
    	   <dl><dd class="error" id='error'></dd></dl>

		<dl>
			<dt><label for="user_id">${I18n.getMessage("ActivateAccount.userId")}:</label></dt>
			<dd><input class="inputbox narrow" type="text" name="user_id" id="user_id" maxlength="25" size="35" /></dd>
		</dl>
		<dl>
			<dt><label for="hash">${I18n.getMessage("ActivateAccount.hash")}:</label></dt>
			<dd><input class="inputbox narrow" type="text" name="hash" id="hash" maxlength="255" size="25" /></dd>
		</dl>
		<dl>
			<dt>&nbsp;</dt>
			<dd>
			  <input type="reset" value="${I18n.getMessage("User.reset")}" name="reset" class="button2" onclick='formReset()' />
			  <input type="submit" name="submit" id="submit" class="button1" value="${I18n.getMessage("User.submit")}" tabindex="2" />
			</dd>
		</dl>
		
		</fieldset>
	</div>

	<span class="corners-bottom"><span></span></span></div>
</div>

		
</form>






<#include "bottom.htm"/>